/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: yinsh
 * Date: 2025-01-17
 * Time: 18:00
 */
public class MyArray {
    public <T extends Comparable> T myArray(T[] myarray){
        T max = myarray[0];
        for (int i = 0; i < myarray.length; i++) {
            if(myarray[i].compareTo(max) > 0){
                max = myarray[i];
            }
        }
        return max;
    }

}
